'use strict'

module.exports = (app) => {
    const { STRING, INTEGER, DATE } = app.Sequelize

    const User = app.model.define('user', {
        id: { type: INTEGER, primaryKey: true, autoIncrement: true },
        name: STRING,
        date: DATE,
        account: STRING,
        star: INTEGER,
    })

    return User
}
